package cn.stylefeng.guns.order.model.param;

import cn.stylefeng.guns.core.pojo.base.param.BaseParam;

import java.util.Date;
import java.util.List;

import cn.stylefeng.guns.orderitem.entity.OrderItem;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * order
 *
 * @author aria
 * @date 2021/02/20 20:24
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class OrderParam extends BaseParam {

    /**
     * 订单号
     */
    @NotNull(message = "订单号不能为空",groups = {edit.class})
    private Integer orderId;

    /**
     * 用户id
     */
    @NotNull(message = "用户id不能为空",groups = {add.class})
    private Integer userId;

    /**
     * 地址
     */
    @NotNull(message = "地址不能为空",groups = {add.class})
    private String address;

    private String status;

    //@NotNull(message = "接收人电话不能为空",groups = {add.class})
    private String phone;

    /**
     * 订单项
     */
    private List<OrderItem> items;

}
